﻿using System.ComponentModel;

namespace BodaNetCommunications.McComs
{
    internal enum KeyenceAddressArea
    {
        [McAddress(McAddressArea.X)]
        [Description("输入继电器R")]
        R,

        [McAddress(McAddressArea.Y)]
        [Description("输出继电器R，为了区分用RO代替")]
        RO,

        [McAddress(McAddressArea.B)]
        [Description("链接继电器")]
        B,

        [McAddress(McAddressArea.M)]
        [Description("内部辅助继电器")]
        MR,

        [McAddress(McAddressArea.L)]
        [Description("锁存继电器")]
        LR,

        [McAddress(McAddressArea.SM)]
        [Description("控制继电器")]
        CR,

        [McAddress(McAddressArea.SD)]
        [Description("控制存储器")]
        CM,

        [McAddress(McAddressArea.D)]
        [Description("数据存储器D")]
        DM,

        [McAddress(McAddressArea.DD)]
        [Description("扩展数据存储器D")]
        EM,

        [McAddress(McAddressArea.R)]
        [Description("文件寄存器")]
        FM,

        [McAddress(McAddressArea.ZR)]
        [Description("文件寄存器")]
        ZF,

        [McAddress(McAddressArea.W)]
        [Description("链路寄存器")]
        W,

        [McAddress(McAddressArea.TN)]
        [Description("T定时器(当前值)")]
        T,

        [McAddress(McAddressArea.TS)]
        [Description("T定时器(接点)，为了区分用T2代替")]
        T2,

        [McAddress(McAddressArea.CN)]
        [Description("C计数器(当前值)")]
        C,

        [McAddress(McAddressArea.CS)]
        [Description("C计数器(接点)，为了区分用C2代替")]
        C2
    }
}